{include file="kuyou/common/menu" /}
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"><span class="must">*</span> {:__('Factory Number')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-customer_code" data-rule="required" class="form-control" name="row[customer_code]" type="text" value="{$code|default=''}" placeholder=" {:__('Factory Number')}">
                </div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"><span class="must">*</span>{:__('Customer_name')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-customer_name" data-rule="required" class="form-control" name="row[customer_name]" type="text" value="" placeholder="{:__('Customer_name')}">
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('Balance date')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-account_time" class="form-control" data-use-current="true" name="row[account_time]" type="text" placeholder=" {:__('Balance date')}">
                </div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('Initial Accounts Payable')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-receive_account" class="form-control" data-use-current="true" name="row[receive_account]" type="text" placeholder=" {:__('Initial Accounts Payable')}">
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('Initial advance payment')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-opening_prepayment" class="form-control" data-use-current="true" name="row[opening_prepayment]" type="text" placeholder=" {:__('Initial advance payment')}">
                </div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('Taxpayer Identification Number')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-identification" class="form-control" data-use-current="true" name="row[identification]" type="text" placeholder=" {:__('Taxpayer Identification Number')}">
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('Bank of Deposit')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-deposit_bank" class="form-control" name="row[deposit_bank]" type="text" placeholder=" {:__('Bank of Deposit')}">
                </div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-4"> {:__('bank account')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-bank_number" class="form-control" name="row[bank_number]" type="text" placeholder=" {:__('bank account')}">
                </div>
            </div>
        </div>
    </div>

    <div class="list">
        <table>
            <tr>
                <th></th><th><span class="must">*</span>{:__('contacts')}</th><th>{:__('mobile phone')}</th><th>{:__('Landline phone')}</th><th>QQ/{:__('WeChat')}/Email</th><th>{:__('Contact address')}</th><th>首要{:__('contacts')}</th>
            </tr>
            <tr>
                <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                <td><div><input type="text" name="user[name][]"><input type="hidden" name="user[id][]" value=""></div></td>
                <td><div><input type="text" name="user[mobile][]"></div></td>
                <td><div><input type="text" name="user[phone][]"></div></td>
                <td><div><input type="text" name="user[qqnum][]"></div></td>
                <td><div><input type="text" name="user[address][]"></div></td>
                <td><div><select name="user[first][]"><option value="0">{:__('no')}</option><option value="1">{:__('yes')}</option></select></div></td>
            </tr>
            <tr>
                <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                <td><div><input type="text" name="user[name][]"><input type="hidden" name="user[id][]" value=""></div></td>
                <td><div><input type="text" name="user[mobile][]"></div></td>
                <td><div><input type="text" name="user[phone][]"></div></td>
                <td><div><input type="text" name="user[qqnum][]"></div></td>
                <td><div><input type="text" name="user[address][]"></div></td>
                <td><div><select name="user[first][]"><option value="0">{:__('no')}</option><option value="1">{:__('yes')}</option></select></div></td>
            </tr>
            <tr>
                <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                <td><div><input type="text" name="user[name][]"><input type="hidden" name="user[id][]" value=""></div></td>
                <td><div><input type="text" name="user[mobile][]"></div></td>
                <td><div><input type="text" name="user[phone][]"></div></td>
                <td><div><input type="text" name="user[qqnum][]"></div></td>
                <td><div><input type="text" name="user[address][]"></div></td>
                <td><div><select name="user[first][]"><option value="0">{:__('no')}</option><option value="1">{:__('yes')}</option></select></div></td>
            </tr>
        </table>
    </div>

    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <textarea id="c-note" class="form-control" rows="5" name="row[note]" cols="30" placeholder="{:__('Add note information')}，{:__('Not exceeding')}100{:__('One word')}"></textarea>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
